package com.jd.dl.web.tag;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.UIBean;

import com.opensymphony.xwork2.util.ValueStack;

public class ProductAttrBean extends UIBean {
	private static String TEMPLATE_NAME = "projectattr";
	private List attrs;

	public ProductAttrBean(ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
		super(stack, request, response);
	}

	@Override
	protected String getDefaultTemplate() {
		return TEMPLATE_NAME;
	}

	@Override
	protected void evaluateExtraParams() {
		super.evaluateExtraParams();
		if (attrs != null) {
			addParameter("attrs", attrs);
		}
	}
	public void setAttrs(List attrs) {
		this.attrs = attrs;
	}

}
